package com.demo.gulimall.ware.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.io.Serializable;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 库存工作单
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("wms_ware_order_task")
public class WareOrderTask implements Serializable {
	/** id */
	@TableId(type = IdType.ID_WORKER) // 老版本
    //@TableId(type = IdType.ASSIGN_ID) // 新版本
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`id`")
	private Long id;

	/** order_id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`order_id`")
	private Long orderId;

	/** order_sn */
	@TableField(value = "`order_sn`")
	private String orderSn;

	/** 收货人 */
	@TableField(value = "`consignee`")
	private String consignee;

	/** 收货人电话 */
	@TableField(value = "`consignee_tel`")
	private String consigneeTel;

	/** 配送地址 */
	@TableField(value = "`delivery_address`")
	private String deliveryAddress;

	/** 订单备注 */
	@TableField(value = "`order_comment`")
	private String orderComment;

	/** 付款方式【 1:在线付款 2:货到付款】 */
	@TableField(value = "`payment_way`")
	private Byte paymentWay;

	/** 任务状态 */
	@TableField(value = "`task_status`")
	private Byte taskStatus;

	/** 订单描述 */
	@TableField(value = "`order_body`")
	private String orderBody;

	/** 物流单号 */
	@TableField(value = "`tracking_no`")
	private String trackingNo;

	/** create_time */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
	@TableField(value = "`create_time`")
	private Date createTime;

	/** 仓库id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`ware_id`")
	private Long wareId;

	/** 工作单备注 */
	@TableField(value = "`task_comment`")
	private String taskComment;

}
